import request from '@/utils/request'

// 查询章节大纲列表
export function listChapterOutline(query) {
  return request({
    url: '/novel/chapterOutline/list',
    method: 'get',
    params: query
  })
}

// 查询章节大纲详细
export function getChapterOutline(id) {
  return request({
    url: '/novel/chapterOutline/' + id,
    method: 'get'
  })
}

// 新增章节大纲
export function addChapterOutline(data) {
  return request({
    url: '/novel/chapterOutline',
    method: 'post',
    data: data
  })
}

// 修改章节大纲
export function updateChapterOutline(data) {
  return request({
    url: '/novel/chapterOutline',
    method: 'put',
    data: data
  })
}

// 删除章节大纲
export function delChapterOutline(id) {
  return request({
    url: '/novel/chapterOutline/' + id,
    method: 'delete'
  })
}
